package com.e3.test.client;

import java.util.Date;

import com.extjs.gxt.ui.client.data.BaseModelData;

public class Plant extends BaseModelData {

	private static final long serialVersionUID = -8159202711744235769L;

	public Plant() {
		super();
	}

	public Plant(String name, String light, int price, boolean indoor, Date available) {
		super();
		setName(name);
		setLight(light);
		setPrice(price);
		setIndoor(indoor);
		setAvailable(available);
	}

	public String getName() {
		return get("name");
	}

	public String getLight() {
		return get("light");
	}

	public int getPrice() {
		return get("price");
	}

	public boolean isIndoor() {
		return get("indoor");
	}

	public Date getAvailable() {
		return get("available");
	}

	public void setName(String string) {
		set("name", string);
	}

	public void setLight(String string) {
		set("light", string);
	}

	public void setPrice(int i) {
		set("price", i);
	}

	public void setAvailable(Date asDate) {
		set("available", asDate);
	}

	public void setIndoor(boolean b) {
		set("indoor", b);
	}

}
